<?php
//测试控制器类
class IndexController extends Controller{
    //动作方法
    public function index(){
        $file='upload/hdphp.jpg';
        $img= new Image();
        $size=array(
        	'100x100.jpg'=>array(100,100),
        	'200x200.jpg'=>array(200,200)
        );
        foreach ($size as $key => $value) {
        	$img->thumb($file,'upload/'.$key,$value[0],$value[1],6);
        }
        
    }
}
